Repository navigation
fix(docs): remove committed s11-relay spike private keys, regenerate locally - #13614
Merged
Merged
Conversation
…locally The s11-relay spike tracked six throwaway private keys (two CA keys, three leaf keys, the live leaf key) plus generation intermediates (.csr/.srl). Remove them from the tree, cover keys and intermediates with a certs/.gitignore, and add generate-certs.sh, which recreates the exact recorded topology locally (CA 1 signs leafA/leafB, CA 2 signs leafC, leafB installed as the live leaf, EC P-256, CN=localhost, SAN DNS:localhost + IP:127.0.0.1). Public certificates stay tracked; the configs keep pointing at certs/live/leaf.key, which the script installs. History is untouched (purge is a separate human decision). Issue #12150.
|
Warning Review limit reachedYou've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository. Next included review available in 7 minutes. View limit details
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Removes the committed private-key material from the s11-relay spike (issue #12150):
git rmthe six tracked private keys (certs/gen/{ca1,ca2,leafA,leafB,leafC}.key,certs/live/leaf.key) and the generation intermediates (*.csr,*.srl).certs/.gitignore:*.key,*.csr,*.srlare never committed again.certs/generate-certs.sh: regenerates the whole topology locally with openssl — CA 1 (CN=s11 test CA 1) signs leafA/leafB, CA 2 signs leafC (the wrong-CA/rotation leaf), leafB is installed aslive/leaf, EC P-256 keys, leavesCN=localhostwith SANDNS:localhost, IP:127.0.0.1via the trackedleaf.ext. The public certificates (.pem/.der) stay tracked unchanged, andconfig/tls-manual.toml/tls-reloading.tomlkeep pointing atcerts/live/leaf.key, which the script installs.certs/README.mddocuments the arrangement and the history note.Verification (laptop worktree, script run end to end):
openssl verifypasses for leafA/leafB/live against CA 1 and leafC against CA 2, and fails for leafC against CA 1 (the spike's CA-mismatch case); regenerated subjects/issuers/SAN match the originals; live key is byte-identical to the generated leafB key and matches the live cert;git check-ignoreconfirms keys/intermediates are ignored;git grep "BEGIN PRIVATE KEY"over the tracked spike tree returns nothing.Scope notes: the keys only ever signed this spike's test chains (no environment trusts CA 1/CA 2; the historical certs are expired). Git history still contains the old keys — a history rewrite/purge is a separate human decision, as the issue states. One other repo-wide
BEGIN PRIVATE KEYstring hit is a Rust source file under a research directory (dalek source copy), not key material; left untouched.Open in [code]smith · Need help on this PR? Tag
@codesmith-botwith what you need.